package com.bluse.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;


public class MyAppilcationListener  implements ApplicationListener<ApplicationEvent> {

    private static final Logger logger = LoggerFactory.getLogger(MyAppilcationListener.class);


    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        logger.info("event:{}",event);
        System.out.println("hello");
    }
}
